/*********************/
/** ControllerLightSetting.java */
/*********************/
package atag.apps.mainApp;
import atag.j2mespecific.*;
import java.io.IOException;
import java.io.DataOutput;
import java.io.DataInput;



public class ControllerLightSetting implements Serializable {
	private int ID;
	private int lightSetting;
        public ControllerLightSetting(){
            //-- blank, for deserialization
        }

    public int getID() {
        return ID;
    }

    public void setID(int ID) {
        this.ID = ID;
    }

    public int getLightSetting() {
        return lightSetting;
    }

    public void setLightSetting(int lightSetting) {
        this.lightSetting = lightSetting;
    }
	
    public void serialize(DataOutput dg) throws IOException {
    //--Be careful to include all variables
        dg.writeInt(this.ID);
        dg.writeInt(this.lightSetting);
    }
    public void deserialize(DataInput dg) throws IOException, 
        ClassNotFoundException, IllegalAccessException, InstantiationException {
    //--Be careful to maintain the same order as the method above
        this.ID = dg.readInt();
        this.lightSetting = dg.readInt();
    }
}
